<template>
  <div class="enrollPayMoneyContainer">
    <div
      class="dialog animated"
      :class="open ? 'fadeIn' : 'fadeOut'"
      v-show="show"
      :style="{ visibility: visible ? 'visible' : 'hidden' }"
    >
      <div class="panel animated" :class="open ? 'zoomIn' : ''">
        <div class="title">
          报名
          <div class="close" @click="cancel()"></div>
        </div>
        
        <div class="btn_div">
          <div class="btn_sure" @click="sure()">下一步</div>
          <div class="btn_cancel" @click="cancel()">保存并关闭</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
var vm,user;
export default {
  data: function() {
    return {
      show: false,
      open: false,
      visible: false,
      isAdd: true
    };
  },
  methods: {
    init: function(data) {
      vm.show = true;
      setTimeout(function() {
        vm.open = true;
        vm.visible = true;
      }, 11);
    },
    
    cancel: function() {
      //隐藏弹窗
      vm.open = false;
      vm.isAdd = true;
      vm.$emit("cancel", "");
      setTimeout(function() {
        vm.show = false;
        vm.visible = false;
      }, 500);
    }
  },
  created: function() {
    vm = this;
     user = tool.getItem(lsKey.user, true); //得到当前用户信息
  }
};
</script>
<style lang="scss">
</style>
<style scoped src="@/style/module/dialog.css"></style>
<style scoped>
</style>





